package typedef

import (
	"github.com/nats-io/go-nats"
	"sync"
	"time"
)

type NatsConfig struct {
	HostName string
	Tcp      int
	Http     int
}

type NatsPub struct {
	Topic    string
	NatsConn *nats.Conn
}

type NatsSub struct {
	Topic        string
	Conn         *nats.Conn
	Subscription sync.Map
}

type DelayPub struct {
	Topic   string
	Message string
	PubTime time.Time
}
